package com.lyj.repository.es;

import com.lyj.domain.es.EsBlog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * Esblog Repository 接口
 * Created by lyj on 2017/10/31.
 */
public interface EsBlogRepository extends ElasticsearchRepository<EsBlog,String>{

    /**
     *  分页查询Esblog（去重）接口
     *  Distinct表示去重
     *  Containing 包含
     * @param title
     * @param summary
     * @param content
     * @return
     */
    Page<EsBlog> findDistinctEsBlogByTitleContainingOrSummaryContainingOrContentContaining(String title, String summary, String content, Pageable pageable);

}
